<div class="layui-side layui-side-menu">
    <div class="layui-side-scroll">
        <div class="layui-logo" lay-href="home/console.html">
            <span>layuiAdmin</span>
        </div>

        <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">

            @foreach($adminNav as $v)
                <li data-name="{{$v['id']}}" class="layui-nav-item">
                    <a @if(!empty($v['_data'])) href="javascript:;"
                       @else lay-href="{{$v['mca']}}" @endif  lay-tips="{{$v['name']}}" lay-direction="2">
                    <i class="layui-icon {{$v['ico']}}"></i>
                    <cite>{{$v['name']}}</cite>
                    </a>
                    @if(!empty($v['_data']))
                    <dl class="layui-nav-child">
                        @foreach($v['_data'] as $n)
                        <dd>
                            <a @if(!empty($n['_data'])) lay_href="javascript:;"
                               @else lay-href="{{$n['mca']}}" @endif>{{$n['name']}}</a>
                            @if(!empty($n['_data']))
                            <dl class="layui-nav-child">
                                @foreach($n['_data'] as $m)
                                <dd>
                                    <a lay-href="{{$m['mca']}}" lay-text="{{$m['name']}}">{{$n['name']}}</a>
                                </dd>
                                @endforeach
                            </dl>
                            @endif
                        </dd>
                        @endforeach
                    </dl>
                    @endif
                </li>
            @endforeach

        </ul>
    </div>
</div>
